package com.llynic.designdemo.singlemode;

/**
 * 静态内部类的方式
 */
public class Singleton {

    private Singleton(){};

    private static class SingletonInstance{
         private static final Singleton INSTANCE = new Singleton();
    }

    public Singleton getInstance(){
        return SingletonInstance.INSTANCE;
    }


}
